<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>GZ31学员问答系统</title>
		<meta name="description" content="overview &amp; stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!-- 基础 样式 -->
		<link href="/gz31/wenda/Public/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="/gz31/wenda/Public/assets/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="/gz31/wenda/Public/assets/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!-- 具体的插件页面风格 -->
		<!-- fonts -->
		<link rel="stylesheet" href="/gz31/wenda/Public/assets/css/ace-fonts.css" />

		<!-- ace styles -->
		<link rel="stylesheet" href="/gz31/wenda/Public/assets/css/ace.min.css" />
		<link rel="stylesheet" href="/gz31/wenda/Public/assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="/gz31/wenda/Public/assets/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="/gz31/wenda/Public/assets/css/ace-ie.min.css" />
		<![endif]-->

		<!-- 与此页相关的内联样式 -->
		<!-- ace settings handler -->
		<script src="/gz31/wenda/Public/assets/js/ace-extra.min.js"></script>

		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
		<script src="/gz31/wenda/Public/assets/js/html5shiv.js"></script>
		<script src="/gz31/wenda/Public/assets/js/respond.min.js"></script>
		<![endif]-->
	</head>

	<body>
	<!-- 头部导航 开始 -->
		<div class="navbar navbar-default" id="navbar">
	<script type="text/javascript">
		try{ace.settings.check('navbar' , 'fixed')}catch(e){}
	</script>

	<div class="navbar-container" id="navbar-container">
		<div class="navbar-header pull-left">
			<a href="#" class="navbar-brand">
				<small>
					<i class="icon-leaf"></i>
					GZ31 问答系统
				</small>
			</a><!-- /.brand -->
		</div><!-- /.navbar-header -->

		<div class="navbar-header pull-right" role="navigation">
			<ul class="nav ace-nav">
				<li class="grey">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<i class="icon-tasks"></i>
						<span class="badge badge-grey">4</span>
					</a>

					<ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
						<li class="dropdown-header">
							<i class="icon-ok"></i>
							4 Tasks to complete
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">Software Update</span>
									<span class="pull-right">65%</span>
								</div>

								<div class="progress progress-mini ">
									<div style="width:65%" class="progress-bar "></div>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">Hardware Upgrade</span>
									<span class="pull-right">35%</span>
								</div>

								<div class="progress progress-mini ">
									<div style="width:35%" class="progress-bar progress-bar-danger"></div>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">Unit Testing</span>
									<span class="pull-right">15%</span>
								</div>

								<div class="progress progress-mini ">
									<div style="width:15%" class="progress-bar progress-bar-warning"></div>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">Bug Fixes</span>
									<span class="pull-right">90%</span>
								</div>

								<div class="progress progress-mini progress-striped active">
									<div style="width:90%" class="progress-bar progress-bar-success"></div>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								See tasks with details
								<i class="icon-arrow-right"></i>
							</a>
						</li>
					</ul>
				</li>

				<li class="purple">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<i class="icon-bell-alt icon-animated-bell"></i>
						<span class="badge badge-important">8</span>
					</a>

					<ul class="pull-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
						<li class="dropdown-header">
							<i class="icon-warning-sign"></i>
							8 Notifications
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">
										<i class="btn btn-xs no-hover btn-pink icon-comment"></i>
										New Comments
									</span>
									<span class="pull-right badge badge-info">+12</span>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<i class="btn btn-xs btn-primary icon-user"></i>
								Bob just signed up as an editor ...
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">
										<i class="btn btn-xs no-hover btn-success icon-shopping-cart"></i>
										New Orders
									</span>
									<span class="pull-right badge badge-success">+8</span>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">
										<i class="btn btn-xs no-hover btn-info icon-twitter"></i>
										Followers
									</span>
									<span class="pull-right badge badge-info">+11</span>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								See all notifications
								<i class="icon-arrow-right"></i>
							</a>
						</li>
					</ul>
				</li>

				<li class="green">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<i class="icon-envelope icon-animated-vertical"></i>
						<span class="badge badge-success">5</span>
					</a>

					<ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
						<li class="dropdown-header">
							<i class="icon-envelope-alt"></i>
							5 Messages
						</li>

						<li>
							<a href="#">
								<img src="/gz31/wenda/Public/assets/avatars/avatar.png" class="msg-photo" alt="Alex's Avatar" />
								<span class="msg-body">
									<span class="msg-title">
										<span class="blue">Alex:</span>
										Ciao sociis natoque penatibus et auctor ...
									</span>

									<span class="msg-time">
										<i class="icon-time"></i>
										<span>a moment ago</span>
									</span>
								</span>
							</a>
						</li>

						<li>
							<a href="#">
								<img src="/gz31/wenda/Public/assets/avatars/avatar3.png" class="msg-photo" alt="Susan's Avatar" />
								<span class="msg-body">
									<span class="msg-title">
										<span class="blue">Susan:</span>
										Vestibulum id ligula porta felis euismod ...
									</span>

									<span class="msg-time">
										<i class="icon-time"></i>
										<span>20 minutes ago</span>
									</span>
								</span>
							</a>
						</li>

						<li>
							<a href="#">
								<img src="/gz31/wenda/Public/assets/avatars/avatar4.png" class="msg-photo" alt="Bob's Avatar" />
								<span class="msg-body">
									<span class="msg-title">
										<span class="blue">Bob:</span>
										Nullam quis risus eget urna mollis ornare ...
									</span>

									<span class="msg-time">
										<i class="icon-time"></i>
										<span>3:15 pm</span>
									</span>
								</span>
							</a>
						</li>

						<li>
							<a href="inbox.html">
								查看所有的信息
								<i class="icon-arrow-right"></i>
							</a>
						</li>
					</ul>
				</li>

				<li class="light-blue">
					<a data-toggle="dropdown" href="#" class="dropdown-toggle">
						<img class="nav-user-photo" src="/gz31/wenda/Public/assets/avatars/user.jpg" alt="Jason's Photo" />
						<span class="user-info">
							<small>欢迎您：</small>
							<?php echo getUserName();?>
						</span>

						<i class="icon-caret-down"></i>
					</a>

					<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
						<li>
							<a href="#">
								<i class="icon-cog"></i>
								设置
							</a>
						</li>

						<li>
							<a href="#">
								<i class="icon-user"></i>
								个人中心
							</a>
						</li>

						<li class="divider"></li>

						<li>
							<a href="<?php echo U('Login/logout');?>">
								<i class="icon-off"></i>
								退出
							</a>
						</li>
					</ul>
				</li>
			</ul><!-- /.ace-nav -->
		</div><!-- /.navbar-header -->
	</div><!-- /.container -->
</div>
	<!-- 头部导航 结束 -->
	


		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<div class="main-container-inner"  style="height:100%;">
				<a class="menu-toggler" id="menu-toggler" href="#">
					<span class="menu-text"></span>
				</a>
	
	<!-- 左侧的菜单栏 开始 -->
				<div class="sidebar" id="sidebar">
	<script type="text/javascript">
		try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
	</script>

	<div class="sidebar-shortcuts" id="sidebar-shortcuts">
		<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
			<button class="btn btn-success">
				<i class="icon-signal"></i>
			</button>

			<button class="btn btn-info">
				<i class="icon-pencil"></i>
			</button>

			<button class="btn btn-warning">
				<i class="icon-group"></i>
			</button>

			<button class="btn btn-danger">
				<i class="icon-cogs"></i>
			</button>
		</div>

		<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
			<span class="btn btn-success"></span>

			<span class="btn btn-info"></span>

			<span class="btn btn-warning"></span>

			<span class="btn btn-danger"></span>
		</div>
	</div><!-- #sidebar-shortcuts -->

	<ul class="nav nav-list">
		<li class="active">
			<a href="index.html">
				<i class="icon-dashboard"></i>
				<span class="menu-text"> 后台首页 </span>
			</a>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-list"></i>
				<span class="menu-text"> 权限控制 </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="<?php echo U('Admin/index');?>">
						<i class="icon-double-angle-right"></i>
						管理员列表
					</a>
				</li>
				<li>
					<a href="<?php echo U('Admin/add');?>">
						<i class="icon-double-angle-right"></i>
						添加管理员
					</a>
				</li>
				<li>
					<a href="<?php echo U('Rule/index');?>">
						<i class="icon-double-angle-right"></i>
						权限管理
					</a>
				</li>

				<li>
					<a href="<?php echo U('RuleGroup/index');?>">
						<i class="icon-double-angle-right"></i>
						用户组管理
					</a>
				</li>
			</ul>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-list"></i>
				<span class="menu-text"> 系统设置 </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="<?php echo U('Nav/index');?>">
						<i class="icon-double-angle-right"></i>
						菜单栏管理
					</a>
				</li>
				<li>
					<a href="<?php echo U('Nav/index');?>">
						<i class="icon-double-angle-right"></i>
						添加新菜单
					</a>
				</li>
				<li>
					<a href="<?php echo U('Nav/index');?>">
						<i class="icon-double-angle-right"></i>
						导航栏管理
					</a>
				</li>
				<li>
					<a href="<?php echo U('Nav/index');?>">
						<i class="icon-double-angle-right"></i>
						添加新的导航栏
					</a>
				</li>
				<li>
					<a href="<?php echo U('Base/index');?>">
						<i class="icon-double-angle-right"></i>
						基本设置
					</a>
				</li>
				<li>
					<a href="<?php echo U('Cache/index');?>">
						<i class="icon-double-angle-right"></i>
						缓存管理
					</a>
				</li>
			</ul>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-list"></i>
				<span class="menu-text"> 学生管理 </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="<?php echo U('User/index');?>">
						<i class="icon-double-angle-right"></i>
						学生列表
					</a>
				</li>
				<li>
					<a href="<?php echo U('User/Add');?>">
						<i class="icon-double-angle-right"></i>
						添加新的学生
					</a>
				</li>
			</ul>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-list"></i>
				<span class="menu-text"> 问答管理 </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="<?php echo U('AskCategory/index');?>">
						<i class="icon-double-angle-right"></i>
						问题类别管理
					</a>
				</li>
				<li>
					<a href="<?php echo U('AskCategory/Add');?>">
						<i class="icon-double-angle-right"></i>
						添加类别
					</a>
				</li>
				<li>
					<a href="<?php echo U('Ask/index');?>">
						<i class="icon-double-angle-right"></i>
						问题列表
					</a>
				</li>
				<li>
					<a href="<?php echo U('Ask/Add');?>">
						<i class="icon-double-angle-right"></i>
						添加新问题
					</a>
				</li>
			</ul>
		</li>
		<!-- 后台菜单 -->
		<?php if(is_array($admin_navs)): foreach($admin_navs as $key=>$v): if(empty($v['_data'])): ?><li class="b-nav-li">
                	<a href="<?php echo U($v['mca']);?>" target="right_content">
                		<i class="icon-<?php echo ($v['ico']); ?>"></i> <span class="menu-text"><?php echo ($v['name']); ?></span>
                	</a>
                </li>
            <?php else: ?>
            	<li class="b-has-child">
            		<a href="#" class="dropdown-toggle b-nav-parent">
            			<i class="icon-<?php echo ($v['ico']); ?> icon-test"></i> <span class="menu-text"><?php echo ($v['name']); ?></span><b class="arrow icon-angle-down"></b>
            		</a>
                    <ul class="submenu">
                        <?php if(is_array($v['_data'])): foreach($v['_data'] as $key=>$n): ?><li class="b-nav-li">
                            	<a href="<?php echo U($n['mca']);?>" target="right_content">
                            		<i class="icon-double-angle-right"></i> <?php echo ($n['name']); ?>
                            	</a>
                            </li><?php endforeach; endif; ?>
                    </ul>
                </li><?php endif; endforeach; endif; ?>

	</ul><!-- /.nav-list -->

	<div class="sidebar-collapse" id="sidebar-collapse">
		<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
	</div>

	<script type="text/javascript">
		try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
	</script>
</div>
	<!-- 左侧的菜单栏 结束 -->

	
	<!-- 右侧主题内容 开始 -->
				<div class="main-content">
			<!-- 面包屑 开始 -->
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="#">Home</a>
							</li>
							<li class="active">Dashboard</li>
						</ul><!-- .breadcrumb -->

						<div class="nav-search" id="nav-search">
							<form class="form-search">
								<span class="input-icon">
									<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
									<i class="icon-search nav-search-icon"></i>
								</span>
							</form>
						</div><!-- #nav-search -->
					</div>
			<!-- 面包屑 结束 -->
			
			<!-- /.page-content start-->
					<div class="page-content">
						
<div class="page-header">
	<h1>
		问题管理
		<small>
			<i class="icon-double-angle-right"></i>
			修改问题
		</small>
	</h1>
</div><!-- /.page-header -->

<div class="row">
	<div class="col-xs-12">
		<!-- 页面 内容 开始 -->
		<form action="<?php echo U('Ask/doAdd');?>" method="post" class="form-horizontal" role="form" id="add_form">
			<input type="hidden" name="id" value="<?php echo ($data['id']); ?>">
			<!-- 权限规则分类 -->
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 所属类别： </label>
				<div class="col-sm-5">
					<select name="cid" class="form-control" id="form-field-select-1">
						<option value="0">--请选择问题类别--</option>
						
						<?php if(is_array($cats)): foreach($cats as $key=>$v): ?><option value="<?php echo ($v['id']); ?>" 
							<?php if($data['id'] == $v['id']): ?>selected<?php endif; ?>											
							><?php echo ($v["_name"]); ?></option><?php endforeach; endif; ?>
					</select>
				</div>
			</div>
			<div class="space-4"></div>
			<!-- 规则名称 -->
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 问题标题： </label>

				<div class="col-sm-9">
					<input name="title" type="text" id="form-field-1" value="<?php echo ($data['title']); ?>" class="col-xs-10 col-sm-5" />
				</div>
			</div>
			<div class="space-4"></div>
			<!-- 问题描述 -->
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 问题描述： </label>
				<div class="col-sm-9">
					<div class="widget-box">
						<div class="widget-header widget-header-small header-color-blue">  </div>

						<div class="widget-body">
							<div class="widget-main no-padding">
								<textarea class="span12" name="content" data-provide="markdown" rows="10"><?php echo (htmlspecialchars_decode($data['content'])); ?></textarea>
							</div>

							<!-- <div class="widget-toolbox padding-4 clearfix">
								<div class="btn-group pull-left">
									<button class="btn btn-sm btn-info">
										<i class="icon-remove bigger-125"></i>
										Cancel
									</button>
								</div>

								<div class="btn-group pull-right">
									<button class="btn btn-sm btn-purple">
										<i class="icon-save bigger-125"></i>
										Save
									</button>
								</div>
							</div> -->
						</div>
					</div>
				</div>
			</div>

			<div class="clearfix form-actions">
				<div class="col-md-offset-3 col-md-9">
					<button class="btn btn-info" type="button" id="edit-submit">
						<i class="icon-ok bigger-110"></i>
						ajax Submit
					</button>

					&nbsp; &nbsp; &nbsp;
					<button class="btn" type="reset">
						<i class="icon-undo bigger-110"></i>
						reset
					</button>
				</div>
			</div>
		</form>
		<!-- PAGE CONTENT ENDS -->
	</div><!-- /.col -->
</div><!-- /.row -->

					</div>
			<!-- /.page-content end-->
				

				</div>
	<!-- 右侧主题内容 结束 -->
	

	<!-- 设置页面样式 开始 -->
				<div class="ace-settings-container" id="ace-settings-container">
					<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
						<i class="icon-cog bigger-150"></i>
					</div>

					<div class="ace-settings-box" id="ace-settings-box">
						<div>
							<div class="pull-left">
								<select id="skin-colorpicker" class="hide">
									<option data-skin="default" value="#438EB9">#438EB9</option>
									<option data-skin="skin-1" value="#222A2D">#222A2D</option>
									<option data-skin="skin-2" value="#C6487E">#C6487E</option>
									<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
								</select>
							</div>
							<span>&nbsp; Choose Skin</span>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" />
							<label class="lbl" for="ace-settings-navbar"> Fixed Navbar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
							<label class="lbl" for="ace-settings-sidebar"> Fixed Sidebar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
							<label class="lbl" for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
							<label class="lbl" for="ace-settings-rtl"> Right To Left (rtl)</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
							<label class="lbl" for="ace-settings-add-container">
								Inside
								<b>.container</b>
							</label>
						</div>
					</div>
				</div>
	<!-- 设置页面样式 结束 -->
	

			</div><!-- /.main-container-inner -->
	
	<!-- 回到顶部 开始 -->
			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
	<!-- 回到顶部 结束 -->
		</div><!-- /.main-container -->

		<!-- 基本脚本 -->
		<!--[if !IE]> -->
		<script type="text/javascript">
			window.jQuery || document.write("<script src='/gz31/wenda/Public/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>
		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='/gz31/wenda/Public/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='/gz31/wenda/Public/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="/gz31/wenda/Public/assets/js/bootstrap.min.js"></script>
		<script src="/gz31/wenda/Public/assets/js/typeahead-bs2.min.js"></script>

		<!-- 特定页面的插件脚本 -->
		<!--[if lte IE 8]>
		  <script src="/gz31/wenda/Public/assets/js/excanvas.min.js"></script>
		<![endif]-->
		<!-- 与此页相关的内联脚本 -->
		
	<!-- 引入本页面需要的脚本文件 -->
	<script src="/gz31/wenda/Public/assets/js/jquery-ui-1.10.3.custom.min.js"></script>
	<script src="/gz31/wenda/Public/assets/js/jquery.ui.touch-punch.min.js"></script>
	<script src="/gz31/wenda/Public/assets/js/markdown/markdown.min.js"></script>
	<script src="/gz31/wenda/Public/assets/js/markdown/bootstrap-markdown.min.js"></script>
	<script src="/gz31/wenda/Public/assets/js/jquery.hotkeys.min.js"></script>
	<script src="/gz31/wenda/Public/assets/js/bootstrap-wysiwyg.min.js"></script>
	<script src="/gz31/wenda/Public/assets/js/bootbox.min.js"></script>
	<script>
		var SCOPE = {
			"edit_url" : "<?php echo U('Ask/doEdit');?>",
			"success_url" : "<?php echo U('Ask/index');?>"
		};
	</script>

	

		<!-- ace 脚本语言 -->
		<script src="/gz31/wenda/Public/assets/js/ace-elements.min.js"></script>
		<script src="/gz31/wenda/Public/assets/js/ace.min.js"></script>

		<!-- common辅助类js -->
		<script type="text/javascript" src="/gz31/wenda/Public/dialog/layer/layer.js"></script>
		<script type="text/javascript" src="/gz31/wenda/Public/dialog/dialog.js"></script>
		<script type="text/javascript" src="/gz31/wenda/Public/common/common.js"></script>


		<script>
			function logout()
			{
				var url = "<?php echo U('Login/logout');?>";
				dialog.loading(0, url);
			}
			$(function(){
			    // 导航点击事件
			    $('.b-nav-li').click(function(event) {
			        $('.active').removeClass('active');
			        var ulObj=$(this).parents('.b-has-child').eq(0);
			        $(this).addClass('active');
			        // alert(2);
			        if(ulObj.length!=0){
			            $(this).parents('.b-has-child').eq(0).addClass('active');
			        }
			    });
			    // 动态调整iframe的高度以适应不同高度的显示器
			    $('.page-content,.main-content').height($(window).height());
			    $('.page-content').css('padding-bottom',50);

			    // 左侧菜单自动适应高度
			    $('#sidebar .nav-list').height($(window).height());
			})

		</script>
	</body>
</html>